<div class="ss-platform-select" [ss-platform-popover]="{template:templateRef}">
  <div class="ss-platform-select-header">
    <ng-container *ngIf="icon"><i>{{icon}}</i></ng-container>
    <span class="value" *ngIf="selectedOption">{{selectedOption.title}}</span>
    <span class="placeholder" *ngIf="!selectedOption">{{placeholder}}</span>
  </div>
  <ng-template #templateRef>
    <div class="ss-platform-popover-content list" style="width: 220px">
      <div class="tip">{{placeholder}}</div>
      <ul class="clearfix">
        <li *ngFor="let option of options" (click)="selectedOption=option" [class.current]="selectedOption==option">{{option.title}}</li>
      </ul>
    </div>
  </ng-template>
</div>
